package io.gitee.zhangbinhub.admin.oauth.po

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.noear.solon.validation.annotation.NotBlank

@ApiModel("机构配置参数")
data class OrganizationPo(
    @ApiModelProperty(name = "机构ID，更新时必填")
    var id: String? = null,
    @ApiModelProperty(name = "机构名称", required = true)
    @field:NotBlank(message = "机构名称不能为空")
    var name: String? = null,
    @ApiModelProperty(name = "机构区域", required = true)
    @field:NotBlank(message = "机构区域不能为空")
    var area: String? = null,
    @ApiModelProperty(name = "机构编码", required = true)
    @field:NotBlank(message = "机构编码不能为空")
    var code: String? = null,
    @ApiModelProperty(name = "上级机构ID", required = true)
    @field:NotBlank(message = "上级机构ID不能为空")
    var parentId: String? = null,
    @ApiModelProperty(name = "序号", required = true)
    var sort: Int = 0,
    @ApiModelProperty(name = "关联用户ID")
    var userIds: MutableList<String> = mutableListOf()
)
